package com.xy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xy.entity.News;
import com.xy.mapper.NewsMapper;
import com.xy.service.NewsService;

@Service(value = "NewsService")
public class NewsServiceImpl implements NewsService {
	@Autowired
	private NewsMapper newsMapper;

	public boolean addNews(News news) {
		return newsMapper.addNews(news);
	}

	public boolean deleNews(News news) {
		return newsMapper.deleNews(news);
	}

	public boolean updateNews(News news) {
		return newsMapper.updateNews(news);
	}

	public List<News> selectNews(News news) {
		return newsMapper.selectNews(news);
	}

}
